package com.yimoo.elearning.vo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Groupinfo entity. @author MyEclipse Persistence Tools
 */

public class Groupinfo implements java.io.Serializable {

	// Fields

	private Integer gid;
	private Userinfo userinfo;
	private String name;
	private Timestamp time;
	private String pic;
	private String text;
	private String tag;
	private Integer played;
	private Integer favor;
	private Integer price;
	private Set userfavors = new HashSet(0);
	private Set groupsincludes = new HashSet(0);

	// Constructors

	/** default constructor */
	public Groupinfo() {
	}

	/** minimal constructor */
	public Groupinfo(Userinfo userinfo, String name, Timestamp time, String pic, String text, Integer played,
			Integer favor, Integer price) {
		this.userinfo = userinfo;
		this.name = name;
		this.time = time;
		this.pic = pic;
		this.text = text;
		this.played = played;
		this.favor = favor;
		this.price = price;
	}

	/** full constructor */
	public Groupinfo(Userinfo userinfo, String name, Timestamp time, String pic, String text, String tag,
			Integer played, Integer favor, Integer price, Set userfavors, Set groupsincludes) {
		this.userinfo = userinfo;
		this.name = name;
		this.time = time;
		this.pic = pic;
		this.text = text;
		this.tag = tag;
		this.played = played;
		this.favor = favor;
		this.price = price;
		this.userfavors = userfavors;
		this.groupsincludes = groupsincludes;
	}

	// Property accessors

	public Integer getGid() {
		return this.gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public Userinfo getUserinfo() {
		return this.userinfo;
	}

	public void setUserinfo(Userinfo userinfo) {
		this.userinfo = userinfo;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Timestamp getTime() {
		return this.time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public String getPic() {
		return this.pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getTag() {
		return this.tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public Integer getPlayed() {
		return this.played;
	}

	public void setPlayed(Integer played) {
		this.played = played;
	}

	public Integer getFavor() {
		return this.favor;
	}

	public void setFavor(Integer favor) {
		this.favor = favor;
	}

	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Set getUserfavors() {
		return this.userfavors;
	}

	public void setUserfavors(Set userfavors) {
		this.userfavors = userfavors;
	}

	public Set getGroupsincludes() {
		return this.groupsincludes;
	}

	public void setGroupsincludes(Set groupsincludes) {
		this.groupsincludes = groupsincludes;
	}

}